package com.lottery.common.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lottery.common.dao.CompetitionRecordMapper;
import com.lottery.common.entity.CompetitionRecord;
import com.lottery.common.service.CompetitionRecordService;
import org.nutz.lang.util.NutMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-10-23
 */
@Service
public class CompetitionRecordServiceImpl extends ServiceImpl<CompetitionRecordMapper, CompetitionRecord> implements CompetitionRecordService {

    @Resource
    private CompetitionRecordMapper competitionRecordMapper;

    @Override
    public void batchTest() {
        competitionRecordMapper.batchTest();
    }

    @Override
    public void batchInsert(List<NutMap> list) {
        competitionRecordMapper.batchInsert(list);
    }

    @Override
    public void batchUpdate(List<NutMap> list) {
        competitionRecordMapper.batchUpdate(list);
    }
}
